package zhr.store.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import zhr.store.domain.Dish;

import java.time.LocalDateTime;

/**
* @author 詹华榕
* @description 针对表【dish(菜品管理)】的数据库操作Mapper
* @createDate 2023-03-30 08:29:35
* @Entity com.zhr.pojo.Dish
*/
@Mapper
public interface DishMapper extends BaseMapper<Dish> {
    @Update("update dish set status = #{status},update_time =#{update_time} where id = #{id} ;")
    public void updateStatus(@Param("status")Integer status, @Param("id") Long id, @Param("update_time")LocalDateTime time);
}




